import request from '@/utils/request'

// 登录
export const loginService = (loginDTO: {
    username: string,
    password: string
}) => {
    return request.post('/account/login', loginDTO)
}

//获取用户信息
export const getUserInfoService = () => {
    return request.get('/account/getUserInfo')
}

//登出
export const logoutService = () => {
    return request.post('/account/logout')
}
